$modal-prefix-cls: 'a-modal';
$default-width: 460px;
.#{$modal-prefix-cls} {
    position: relative;
    width: $default-width; //暂定
    margin: 0 auto;
    top: 100px;
    padding-bottom: 24px;
    @at-root {
        &-mask {
            position: fixed;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            background-color: #373737;
            background-color: rgba(55, 55, 55, 0.6);
            height: 100%;
            z-index: 100000;
            filter: alpha(opacity=50);
        }
        &-wrap {
            position: fixed;
            overflow: auto;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            z-index: 100000;
            outline: 0;
        }
        &-content {
            position: relative;
            background-color: #fff;
            border: 0;
            border-radius: 4px;
            background-clip: padding-box;
            -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }
        &-close {
            cursor: pointer;
            border: 0;
            background: transparent;
            position: absolute;
            right: 2px;
            top: 0;
            z-index: 10;
            font-weight: 700;
            line-height: 1;
            text-decoration: none;
            -webkit-transition: color .3s ease;
            transition: all .3s ease;
            color: rgba(0, 0, 0, 0.43);
            outline: 0;
            animation: revertrota .1s linear;
            &:hover {
                animation: rota .1s linear;
            }
        }
        &-close-x {
            display: block;
            font-style: normal;
            text-align: center;
            text-transform: none;
            text-rendering: auto;
            width: 48px;
            height: 48px;
            line-height: 48px;
            font-size: 14px;
        }
        &-header {
            padding: 13px 16px;
            border-radius: 4px 4px 0 0;
            background: #fff;
            color: rgba(0, 0, 0, 0.65);
            border-bottom: 1px solid #e9e9e9;
        }
        &-title {
            margin: 0;
            font-size: 14px;
            line-height: 21px;
            font-weight: 500;
            color: rgba(0, 0, 0, 0.85);
        }
        &-body {
            padding: 16px;
            font-size: 12px;
            word-wrap: break-word;
        }
        &-footer {
            border-top: 1px solid #e9e9e9;
            padding: 10px 16px 10px 10px;
            text-align: right;
            border-radius: 0 0 4px 4px;
        }
        &-mask-hidden {
            display: none;
        }
    }
}

.fade-enter,
.zoom-enter {
    opacity: 0;
    animation-duration: 0.2s;
    animation-fill-mode: both;
    animation-timing-function: linear;
}

.fade-leave,
.zoom-leave {
    opacity: 1;
    animation-duration: 0.2s;
    animation-fill-mode: both;
    animation-timing-function: linear;
}

.zoom-enter.zoom-enter-active {
    animation-name: zoomIn;
}

.zoom-leave.zoom-leave-active {
    animation-name: zoomOut;
}

.fade-enter.fade-enter-active {
    animation-name: fadeIn;
}

.fade-leave.fade-leave-active {
    animation-name: fadeOut;
}

@keyframes revertrota {
    0% {
        transform: rotate(180deg);
    }
    50% {
        transform: rotate(90deg);
    }
    100% {
        transform: rotate(30deg);
    }
}

@keyframes rota {
    0% {
        transform: rotate(30deg);
    }
    50% {
        transform: rotate(90deg);
    }
    100% {
        transform: rotate(180deg);
    }
}

@keyframes zoomIn {
    1% {
        opacity: 0;
        transform: scale(.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomOut {
    1% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(.2);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}